package com.sxyjhh.fg_data_push;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableCaching
@EnableScheduling
public class FgDataPushApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FgDataPushApplication.class);
    }

    public static void main(String[] args) {
        System.out.println("===========程序启动中===========");
        SpringApplication.run(FgDataPushApplication.class, args);
        System.out.println("===========启动完毕===========");
    }
}
